package com.wu.service;


import com.wu.pojo.po.paperPo.Question;

import java.util.List;


public interface QuestionService {
    /**
     * 查询所有的Question,返回List<Question>
     */
    public List<Question> queryQuestion();

    /**
     * 根据试卷的ID查询该试卷所有的Question
     */
     List<Question> queryQuestionByPaperId(String paperId);

    /**
     * 根据id查询Question
     */
    Question queryQuestionById(String id);

    /**
     * 插入一个Question
     */
    boolean insertQuestion(Question question);

    /**
     * 批量插入Question
     */
    boolean insertQuestion(List<Question> questionList);

    /**
     * 根据id更新该Question
     */
    public boolean updateQuestion(Question question);

    /**
     * 根据id删除该Question
     */
    public boolean deleteQuestion(String id);

    /**
     * 根据paperId删除question
     */
     boolean deleteQuestionsByPaperId(String id);

    /**
     * 根据paperId和问题的类型获取questions
     */
     List<Question> getQuestionsByPaperIdAndQuestionType(String paperId, Integer questionType);

    String queryQuestionByPaperIdAndQuestionNo(String paperId, String questionId);
}
